String variables

Portfolio uses variables to provide better detail for an error or to give context to a label or prompt. All variables are designated by a “%s” combination. Do not edit or remove the variable from the string.

If a string contains multiple variables, you can number the variables in order to change the order in which the variables appear in the string. The numbering must follow the order in which the variables appear in the original English (en-US) language file. You can name the first variable in the string “%s1”, the second “%s2”, and so forth. In the edit field, you can arrange the numbered variables in the order that makes sense for the translation. For example, if you need the second variable to precede the first, use “%s2” in the string before “%s1”.

In some case, a string may require a percent sign ( % ) to appear in the text. Because the percent sign is dedicated for variables, you must use two percent signs ( %% ) together to escape from the variable command and to display the single percent in the string.

Related topics